package com.godofgamblers.hotelmanagementsystem.service.imp;

import com.godofgamblers.hotelmanagementsystem.mapper.UserCenterMapper;
import com.godofgamblers.hotelmanagementsystem.pojo.Order;
import com.godofgamblers.hotelmanagementsystem.pojo.Order_item;
import com.godofgamblers.hotelmanagementsystem.service.UserCenterService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.*;


/**
 * @author Haonan
 * @date 2019/10/22 - 17:56
 */
@Service
@Data
public class UserCenterServiceImp implements UserCenterService {
    @Autowired
    private UserCenterMapper userCenterMapper;

    @Override
    public List<Order> findUnpaidOrder(int user_id) {
        return userCenterMapper.findUnpaidOrder(user_id);
    }

    @Override
    public List<Order_item> findUnpaidOrderItem(int user_id) {
        return userCenterMapper.findUnpaidOrderItem(user_id);
    }

    @Override
    public List<Order_item> findUnusedOrderItem(int user_id) {
        return userCenterMapper.findUnusedOrderItem(user_id);
    }

    @Override
    public List<Order_item> findCompleteOrderItem(int user_id) {
        return userCenterMapper.findCompleteOrderItem(user_id);
    }
}
